package com.itheima.thread;
import com.itheima.pojo.Employee;

public class TokenThreadUtils {

    // 泛型指的是 ThredLocal这个容器 里面存储的数据的类型
    public static ThreadLocal<Employee> threadLocal = new ThreadLocal<>();

    public static Employee getThreadLocal() {
        return threadLocal.get();
    }

    public static void setThreadLocal(Employee employee) {
        threadLocal.set(employee);
    }

    public static void remove() {
        threadLocal.remove();
    }

}